Telegram Group & Telegram Channel
Python dasturlash maktabi
⭕️ 3-bo'lim "Nazorat tarkibi" ————————————— Ⓜ️ "if" va "elif" operatorlari Biror shart bajarish uchun if operatorlaridan foydalanishingiz mumkin va shart operatori deyarli barcha dasturlarda ishtirok etadi. Shart operatori 3 qismdan iborat (if, elif, else).…
Ⓜ️ To'plam.

To'plam - takrorlanmaydigan va tartiblanmagan ma'lumotlar saqlaydigan ma'lumot turi.

To'plamdan takrorlanmaydigan ma'lumotlarni saqlash uchun foydalaniladi.

toplam = {'pythonuz', 'pythonuz', 1, 2, 1, 1}
print(toplam)
{'pythonuz', 2, 1}


Jingalak qavs yoki set() funksiyasi yordamida to'plamni tuzish mumkin.

literal = {'pythonuz', 'phpuz', 'mqluz'}
print(literal)
{'phpuz', 'pythonuz', 'mqluz'}


Bo'sh bo'lmagan to'plamni set funksiyasi yordamida tuzish tavsiya etilmaydi.
set_funksiyasi = set([1, 2, 3, 4, 'a', 'b'])
print(set_funksiyasi)
{1, 2, 3, 4, 'b', 'a'}

Warning: Function call can be replaced with set literal

Lu'gat va to'plam jingalak qavslar ichida joylashadi. Bo'sh to'plamni lug'atdan farqlash uchun set() funksiyasi yordamida tuzish tavsiya etiladi.
none = set()
print(none)
set()


To'plamda ro'yxat, to'plam yoki lug'at kabi o'zgaruvchan elementlar bo'lishi mumkin emas.

@pythonuz



tg-me.com/pythonuz/482
Create:
Last Update:

Ⓜ️ To'plam.

To'plam - takrorlanmaydigan va tartiblanmagan ma'lumotlar saqlaydigan ma'lumot turi.

To'plamdan takrorlanmaydigan ma'lumotlarni saqlash uchun foydalaniladi.

toplam = {'pythonuz', 'pythonuz', 1, 2, 1, 1}
print(toplam)
{'pythonuz', 2, 1}


Jingalak qavs yoki set() funksiyasi yordamida to'plamni tuzish mumkin.

literal = {'pythonuz', 'phpuz', 'mqluz'}
print(literal)
{'phpuz', 'pythonuz', 'mqluz'}


Bo'sh bo'lmagan to'plamni set funksiyasi yordamida tuzish tavsiya etilmaydi.
set_funksiyasi = set([1, 2, 3, 4, 'a', 'b'])
print(set_funksiyasi)
{1, 2, 3, 4, 'b', 'a'}

Warning: Function call can be replaced with set literal

Lu'gat va to'plam jingalak qavslar ichida joylashadi. Bo'sh to'plamni lug'atdan farqlash uchun set() funksiyasi yordamida tuzish tavsiya etiladi.
none = set()
print(none)
set()


To'plamda ro'yxat, to'plam yoki lug'at kabi o'zgaruvchan elementlar bo'lishi mumkin emas.

@pythonuz

BY Python dasturlash maktabi


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonuz/482

View MORE
Open in Telegram


Python dasturlash maktabi Telegram | DID YOU KNOW?

Date: |

Telegram announces Search Filters

With the help of the Search Filters option, users can now filter search results by type. They can do that by using the new tabs: Media, Links, Files and others. Searches can be done based on the particular time period like by typing in the date or even “Yesterday”. If users type in the name of a person, group, channel or bot, an extra filter will be applied to the searches.

How Does Telegram Make Money?

Telegram is a free app and runs on donations. According to a blog on the telegram: We believe in fast and secure messaging that is also 100% free. Pavel Durov, who shares our vision, supplied Telegram with a generous donation, so we have quite enough money for the time being. If Telegram runs out, we will introduce non-essential paid options to support the infrastructure and finance developer salaries. But making profits will never be an end-goal for Telegram.

Python dasturlash maktabi from ar


Telegram Python dasturlash maktabi
FROM USA